<?php

namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

class PhotoResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    public function toArray($request)
    {
        return [
            'id' => $this->id,
            'plan_id' => $this->plan_id,
            'path' => $this->path,
            'path_url' => $this->path_url,
            'retouch_path' => $this->retouch_path,
            'retouch_path_url' => $this->retouch_path_url,
            'retouch' => $this->retouch,
            'diff_img' => $this->diff_img,
            'description' => $this->description
        ];
    }
}
